package com.zwh;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zwh
 * @version V1.0
 * @Package com.zwh
 * @date 2021/8/28 下午6:35
 */
public class TestSpring {

	public static void main(String[] args) {
		AbstractApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
//		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfig.class);
		Object teacher = ac.getBean("teacher");
		System.out.println(teacher);
	}

}
